<extend name="public@base5"/>
<block name="head">
    <link rel="stylesheet" href="__STATIC__/css/mall.css?v={$_static_version}"></link>
    <include file="theme/functions"/>
</block>
<block name="main">
<div class="wrap ">
    <form class="js-ajax-form margin-top-20" role="form" action="{:url('OpSetting/exchangePercentPost')}" method="post">    
        <div class="row mb-3">
            <label for="input-exchange_percent" class="col-sm-2 col-form-label text-sm-end"><span class="form-required">*</span>增加星链石的兑换占比</label>
            <div class="col-md-1 col-sm-10">
                <input type="number" class="form-control" id="input-exchange_percent" name="mall[exchange_percent]" 
                    value="{:number_format((isset($mall.exchange_percent) ? $mall.exchange_percent : 0) /100,2)}">
            </div>
            <div class="col-md-1 col-sm-10">%</div>
        </div>
        <div style="text-align: center;">
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                        {:lang('SAVE')}
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>
</block>
<block name="scripts">
    <include file="theme/scripts"/>
</block>
